﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <meta charset="utf-8" />
    <script src="../jquery-easyui-1.4.3/jquery-1.8.2.js"></script>
    <script src="../jquery-easyui-1.4.3/jquery.min.js"></script>
    <script src="../jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
    <link href="../themes/default/easyui.css" rel="stylesheet" />
    <link href="../themes/icon.css" rel="stylesheet" />
</head>
<body>
    <form id="ff" class="easyui-form" method="post" data-options="novalidate:true">
        <table cellpadding="5">
            <tr>
                <td>店铺名称:</td>
                <td>
                    <input class="easyui-textbox" type="text" name="name" data-options="required:true">
                </td>
            </tr>
            <tr>
                <td>店铺类型:</td>
                <td>
                    <select class="easyui-combobox" name="type"><option value="bg">加盟店</option><option value="ca">自己的店</option><option value="zh-cht">我的店</option></select>
                </td>
            </tr>
            <tr>
                <td>联系人:</td>
                <td>
                    <input class="easyui-textbox" type="text" name="Leader">
                </td>
            </tr>
            <tr>
                <td>联系电话:</td>
                <td>
                    <input class="easyui-textbox" type="text" name="tel" data-options="required:true,validType:'tel'">
                </td>
            </tr>
            <tr>
                <td>店铺地址:</td>
                <td>
                    <input class="easyui-textbox" name="adress" data-options="required:true">
                </td>
            </tr>
            <tr>
                <td>备注:</td>
                <td>
                    <input class="easyui-textbox" name="remark" data-options="required:true">
                </td>
            </tr>
        </table>
        <div style="text-align:center;padding:5px">
            <a id="AddBtn" href="javascript:void(0)" class="easyui-linkbutton">添加</a>
        </div>
    </form>
    <script type="text/javascript">
        $("#AddBtn").click(function () {
            $('#ff').form('submit', {
                onSubmit: function () {
                    return $(this).form('enableValidation').form('validate');
                }
            });
        });
    </script>
</body>
</html>
